<template>
  <!-- <div class="usershow">
        <el-col :span="20" v-for="user in users" :key="user.id" style="margin-bottom: 40px;">
         <el-descriptions  direction="vertical" :column="6" border>
         <el-descriptions-item label="用户名">{{user.name}}</el-descriptions-item>
         <el-descriptions-item label="手机号">{{user.mobile}}</el-descriptions-item>
         <el-descriptions-item label="邮箱">{{user.email}}</el-descriptions-item>
         <el-descriptions-item label="备注"><el-tag size="small">公司</el-tag></el-descriptions-item>
         <el-descriptions-item label="收货地址">{{user.address}}</el-descriptions-item>
         </el-descriptions>
  </el-col>
</div> -->
<el-descriptions class="margin-top"  :column="1" direction="vertical">
      <template slot="extra">
      <el-button type="primary" size="small" @click="toChainfo">操作</el-button>
    </template>
  <el-descriptions-item label="用户名">{{user.name}}</el-descriptions-item>
  <el-descriptions-item label="手机号">{{user.mobile}}</el-descriptions-item>
  <el-descriptions-item label="邮箱">{{user.email}}</el-descriptions-item>
  <el-descriptions-item label="备注">
    <el-tag size="small">公司</el-tag>
  </el-descriptions-item>
  <el-descriptions-item label="地址">{{user.address}}</el-descriptions-item>
</el-descriptions>
</template>
<style>

</style>
<script>
    export default {
      name: 'PerinfoView',
      data() {
		return {
      user:{},
		}
	}, 
  created() {
    let pid = this.$route.query.userId
		this.axios.get('/api/getUserInfo')
			.then(res => {
				this.user = res.data.data.find(data => {
          return data.id == pid
        })
				})
    },
      methods:{
        toChainfo(){
      this.$router.push({path:'/personal/ChaInfo',query:{data:JSON.stringify(this.multipleSelection)}})
    },
    
}
}
    </script>
    <style scoped lang="scss">
    ::v-deep .el-descriptions{
     background-color: #FFF0F5;
    }
  </style>